package Olivia.olivia3d.model.ms3d
{
	import flash.display3D.IndexBuffer3D;

	public class MsGroup
	{
//		typedef struct
//		{
//			byte            flags;                              // SELECTED | HIDDEN
//			char            name[32];                           //
//			word            numtriangles;                       //
//			word            triangleIndices[numtriangles];      // the groups group the triangles
//			char            materialIndex;                      // -1 = no material
//		} ms3d_group_t;
		public var flags:int;
		public var name:String;
		public static const name_length:int = 32;
		public var numtriangles:int;
		public var triangleIndices:Array;
		public var indexBuffer:IndexBuffer3D;
		public var materialIndex:int;
		
		public function MsGroup(tf:int,tn:String,tnt:int,tti:Array,tmi:int)
		{
			flags = tf;
			name = tn;
			numtriangles = tnt;
			triangleIndices = tti;
			materialIndex = tmi;
		}
	}
}